<template>
  <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item label="搜索内容">
      <el-input v-model="formInline.user" placeholder="搜索内容" />
    </el-form-item>
    <el-form-item label="搜索条件">
      <el-select v-model="formInline.region" placeholder="搜索条件">
        <el-option label="姓名" value="shanghai" />
        <el-option label="年龄" value="beijing" />
        <el-option label="宠物姓名" value="beijing" />
      </el-select>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        user: '',
        region: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!')
    }
  }
}
</script>
